﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using fanfu.Model;
using fanfu.Business;

public partial class UserControls_Sidebar : System.Web.UI.UserControl
{
    public StringBuilder __ArticleTag = new StringBuilder(); //文章标签
    public StringBuilder __Archives = new StringBuilder();   //文章归档
    public StringBuilder __HotArticle = new StringBuilder(); //热门文章
    public StringBuilder __NewReview = new StringBuilder();  //最新评论
    public StringBuilder __FriendLink = new StringBuilder(); //友情链接

    protected void Page_Load(object sender, EventArgs e)
    {
        __ArticleTag = new ArticleRule().CreateArticleTagHtml();
        __Archives = new ArticleRule().CreateArchivesHtml(12);
        __HotArticle = new ArticleRule().CreateHotArticleHtml(20,30);
        __NewReview = new ReviewRule().CreateNewReviewHtml(15);
        __FriendLink = new FriendLinkRule().CreateFriendLinkHtml();
    }
}